<cd-table [data]="prometheusAlertService.alerts"
          [columns]="columns"
          identifier="fingerprint"
          [forceIdentifier]="true"
          [customCss]="customCss"
          selectionType="single"
          (updateSelection)="updateSelection($event)">
  <cd-table-actions class="table-actions"
                    [permission]="permission"
                    [selection]="selection"
                    [tableActions]="tableActions">
  </cd-table-actions>
  <tabset cdTableDetail
          *ngIf="selection.hasSingleSelection">
    <tab i18n-heading
         heading="Details">
      <cd-table-key-value [renderObjects]="true"
                          [hideEmpty]="true"
                          [appendParentKey]="false"
                          [data]="selection.first()"
                          [customCss]="customCss"
                          [autoReload]="false">
      </cd-table-key-value>
    </tab>
  </tabset>
</cd-table>

<ng-template #externalLinkTpl
             let-row="row"
             let-value="value">
  <a [href]="value"
     target="_blank"><i [ngClass]="[icons.lineChart]"></i> Source</a>
</ng-template>
